package com.odobenus.sample.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.odobenus.sample.bean.DBConfig;
import com.odobenus.sample.bean.ZKConfig;

@Controller
public class DemoController {
	@Resource
	private DBConfig dbConfig;
	@Resource
	private ZKConfig zkConfig;
	@RequestMapping("db")
	@ResponseBody
	public DBConfig db() {
		return dbConfig;
	}
	
	@RequestMapping("zk")
	@ResponseBody
	public ZKConfig zk() {
		return zkConfig;
	}
}
